﻿using SQLite;
using SQLiteNetExtensions.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dt261.Model
{
    [Table("PureToneResult")]
    public class PureToneResult
    {

        private int  acLeftMaskedType;
        private int  acLeftType;
        private int  acRightMaskedType;
        private int  acRightType;
        private int  age;
        private int  bcLeftMaskedType;
        private int  bcLeftType;
        private int  bcRightMaskedType;
        private int  bcRightType;
        private DateTime birthday;
        private DateTime createTime;
        private string deafAidLeftModel;
        private string deafAidRightModel;
        private string deafAidRoutine;
        private string deafAidThreshold;
        private string deafAidVolume;
        private string devicesModel;
        private string deviceWT;
        private string examiner;
        private int  gender;
        private string hospitalId;
        private string memberId;
        private int  isUpload;
        private string listenWord;
        private string mark;
        private string name;
        private string soundField;
        private string strength;
        private int  testType;
        private string tinnitus;
        private int  state;
        private int  modifyDate;

        private int id;
        private string uid;

        [PrimaryKey, AutoIncrement]
        public int Id { get => id; set => id = value; }

        public string Uid { get => uid; set => uid = value; }

        public string MemberId { get => memberId; set => memberId = value; }

        public int AcLeftMaskedType { get => acLeftMaskedType; set => acLeftMaskedType = value; }
        public int AcLeftType { get => acLeftType; set => acLeftType = value; }
        public int AcRightMaskedType { get => acRightMaskedType; set => acRightMaskedType = value; }
        public int AcRightType { get => acRightType; set => acRightType = value; }
        public int Age { get => age; set => age = value; }
        public int BcLeftMaskedType { get => bcLeftMaskedType; set => bcLeftMaskedType = value; }
        public int BcLeftType { get => bcLeftType; set => bcLeftType = value; }
        public int BcRightMaskedType { get => bcRightMaskedType; set => bcRightMaskedType = value; }
        public int BcRightType { get => bcRightType; set => bcRightType = value; }
        public DateTime Birthday { get => birthday; set => birthday = value; }
        public DateTime CreateTime { get => createTime; set => createTime = value; }
        public string DeafAidLeftModel { get => deafAidLeftModel; set => deafAidLeftModel = value; }
        public string DeafAidRightModel { get => deafAidRightModel; set => deafAidRightModel = value; }
        public string DeafAidRoutine { get => deafAidRoutine; set => deafAidRoutine = value; }
        public string DeafAidThreshold { get => deafAidThreshold; set => deafAidThreshold = value; }
        public string DeafAidVolume { get => deafAidVolume; set => deafAidVolume = value; }
        public string DevicesModel { get => devicesModel; set => devicesModel = value; }
        public string DeviceWT { get => deviceWT; set => deviceWT = value; }
        public string Examiner { get => examiner; set => examiner = value; }
        public int Gender { get => gender; set => gender = value; }
        public string HospitalId { get => hospitalId; set => hospitalId = value; }
        
        public int IsUpload { get => isUpload; set => isUpload = value; }
        public string ListenWord { get => listenWord; set => listenWord = value; }
        public string Mark { get => mark; set => mark = value; }
        public string Name { get => name; set => name = value; }
        public string SoundField { get => soundField; set => soundField = value; }
        public string Strength { get => strength; set => strength = value; }
        public int TestType { get => testType; set => testType = value; }
        public string Tinnitus { get => tinnitus; set => tinnitus = value; }
        public int State { get => state; set => state = value; }
        public int ModifyDate { get => modifyDate; set => modifyDate = value; }

        [OneToMany]
        public List<ResultDataSet> DataSets { get; set; }

    }
}
